package cardGame;

public class Card {

	public enum Suit {
		HEART, CLUB, SPADE, DIAMOND
	};

	public enum FaceValue {
		ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING
	};

	private final Suit suit;
	private final FaceValue faceValue;
	
	public Card(Suit suit, FaceValue faceValue) {  // generate constructor using fields from source menu.
		this.suit = suit;
		this.faceValue = faceValue;
	}

	public Suit getSuit() {
		return suit;
	}

	public FaceValue getFaceValue() {
		return faceValue;
	}

	@Override
	public boolean equals(Object o) {
		if (!(o instanceof Card))
			return false;
		Card crd = (Card) o;
		if (crd.getSuit() == this.getSuit() && crd.getFaceValue() == this.getFaceValue())
			return true;
		return false;
		
	}
	
	
	
	
	
}
